# 有四个数字：1、2、3、4，能组成多少个互不相同且无重复数字的三位数？各是多少？


num_list = [1, 2, 3, 4]
count = 0
for hundred in num_list:
    for decade in num_list:
        for the_unit in num_list:
            if (hundred != decade) and (hundred != the_unit) and (decade != the_unit):
                count += 1
                print(hundred, end="")
                print(decade, end="")
                print(hundred, end=" ")
print("")
print(f"共计{count}个结果")
